package com.cskaoyan.mapper;

import com.cskaoyan.bean.MarketPermissions;
import com.cskaoyan.bean.MarketRole;
import com.cskaoyan.bean.MarketRoleExample;
import com.cskaoyan.bean.vo.MarketRoleVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MarketRoleMapper {
    long countByExample(MarketRoleExample example);

    int deleteByExample(MarketRoleExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketRole row);

    int insertSelective(MarketRole row);

    List<MarketRole> selectByExample(MarketRoleExample example);

    MarketRole selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("row") MarketRole row, @Param("example") MarketRoleExample example);

    int updateByExample(@Param("row") MarketRole row, @Param("example") MarketRoleExample example);

    int updateByPrimaryKeySelective(MarketRole row);

    int updateByPrimaryKey(MarketRole row);


    List<MarketRoleVo> selectRoleMsg();

    List<MarketPermissions> selectPermissionsByType(@Param("type") int type);
}